<template>
  <div class="wrap">
    <div class="nav">
      <div>积分明细</div>
    </div>
    <div class="list">
      <div class="top">
        <p class="one">日期</p>
        <p class="one">积分变化</p>
        <p class="one">详细说明</p>
      </div>
      <div>
        <p class="one">2019-10-10 14:20</p>
        <p class="one">+20</p>
        <p class="one fll">购买商品赠送积分购买商品赠送积分</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  created() {
    let datas = localStorage.getItem("lzyyToken");
    let Athis = this;
    if (datas != null) {
      this.$tokens = datas;
    } else {
      this.$message.error("登录错误，请重新登录");
      setTimeout(function() {
        Athis.$router.replace({ path: "/land" });
      }, 1000);
    }
  }
};
</script>
<style lang="less" scoped>
.list {
  min-height: 400px;
  padding-bottom: 60px;
  > div {
    height: 69px;
    line-height: 69px;
    font-size: 16px;
    color: #4d4d4d;
    display: flex;
  }
  .top {
    padding-top: 20px;
  }
  .top p {
    height: 28px;
    line-height: 28px;
    border-left: 1px solid #dbdbdb;
  }
  > div:nth-child(even) {
    background: #f8f8f8;
  }

  p {
    width: 40%;
    text-align: center;
  }
  .fll {
    text-indent: 62px;
    text-align: left;
  }
}
.nav {
  height: 69px;
  line-height: 69px;
  font-size: 18px;
  padding-left: 32px;
  div {
    padding-left: 16px;
    padding-right: 16px;
    color: #4eeec8;
    display: inline-block;
    border-bottom: 2px solid #4eeec8;
  }
}
</style>